<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>电子处方PC端</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="__AdminLTE__/bower_components/bootstrap/dist/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="__AdminLTE__/bower_components/font-awesome/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="__AdminLTE__/bower_components/Ionicons/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="__AdminLTE__/dist/css/AdminLTE.min.css">
  <!-- iCheck -->
  <link rel="stylesheet" href="__AdminLTE__/plugins/iCheck/square/blue.css"> 
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
  
  <!-- 背景 -->
  <script src="__module__/js/sNuMVECHBxUzZGrbnpKK.js"></script>
  <link rel="stylesheet" href="__module__/css/app.min.css">
  <style type="text/css"></style>

  <!-- Google Font -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
  <style type="text/css" media="screen">
    html, body {
       height:50% ;
    }
    .login-page {
    color: #000000;
    background: url('__static__/uploads/bg.jpg') no-repeat fixed #000;
    background-size: cover;
    }
  </style>
</head> 
<body class="hold-transition login-page" id="page-home" >
    <!-- 背景 -->
    <div class="stars-box" id="js-starsBox"><span style="width: 3.14848px; height: 3.14848px; top: 24.9431%; left: 1.41811%;"></span><span style="width: 1.61218px; height: 1.61218px; top: 30.954%; left: 67.4089%;"></span><span style="width: 2.96474px; height: 2.96474px; top: 74.007%; left: 6.85425%;"></span><span style="width: 1.60445px; height: 1.60445px; top: 87.4588%; left: 99.9386%;"></span><span style="width: 0.33879px; height: 0.33879px; top: 33.5145%; left: 0.820764%;"></span><span style="width: 2.9144px; height: 2.9144px; top: 37.4333%; left: 45.1217%;"></span><span style="width: 1.97674px; height: 1.97674px; top: 55.8215%; left: 2.29375%;"></span><span style="width: 2.87455px; height: 2.87455px; top: 12.3188%; left: 86.6349%;"></span><span style="width: 1.81197px; height: 1.81197px; top: 93.4168%; left: 48.8437%;"></span><span style="width: 1.15144px; height: 1.15144px; top: 3.39636%; left: 79.8598%;"></span><span style="width: 2.01226px; height: 2.01226px; top: 93.2197%; left: 2.63168%;"></span><span style="width: 1.8011px; height: 1.8011px; top: 53.749%; left: 17.224%;"></span><span style="width: 3.49264px; height: 3.49264px; top: 5.74669%; left: 53.2807%;"></span><span style="width: 2.22732px; height: 2.22732px; top: 62.7785%; left: 35.8164%;"></span><span style="width: 2.23154px; height: 2.23154px; top: 14.6469%; left: 50.6915%;"></span><span style="width: 2.05466px; height: 2.05466px; top: 60.8256%; left: 71.4398%;"></span><span style="width: 2.90873px; height: 2.90873px; top: 9.42316%; left: 31.782%;"></span><span style="width: 1.95721px; height: 1.95721px; top: 57.1717%; left: 34.52%;"></span><span style="width: 3.59201px; height: 3.59201px; top: 52.6612%; left: 42.0485%;"></span><span style="width: 2.44087px; height: 2.44087px; top: 88.415%; left: 36.3001%;"></span><span style="width: 3.59847px; height: 3.59847px; top: 6.70146%; left: 76.1724%;"></span><span style="width: 2.70075px; height: 2.70075px; top: 36.179%; left: 5.78936%;"></span><span style="width: 0.354653px; height: 0.354653px; top: 74.0062%; left: 45.7657%;"></span><span style="width: 1.62341px; height: 1.62341px; top: 56.1069%; left: 17.0565%;"></span><span style="width: 0.0140709px; height: 0.0140709px; top: 41.7194%; left: 51.3836%;"></span><span style="width: 0.837556px; height: 0.837556px; top: 57.1409%; left: 49.2065%;"></span><span style="width: 3.01216px; height: 3.01216px; top: 38.2319%; left: 47.6262%;"></span><span style="width: 1.15497px; height: 1.15497px; top: 42.9361%; left: 76.8414%;"></span><span style="width: 3.92956px; height: 3.92956px; top: 24.6053%; left: 39.412%;"></span><span style="width: 1.76794px; height: 1.76794px; top: 59.8772%; left: 8.02284%;"></span><span style="width: 1.21841px; height: 1.21841px; top: 27.7513%; left: 15.7539%;"></span><span style="width: 0.357825px; height: 0.357825px; top: 43.9948%; left: 71.4185%;"></span><span style="width: 3.05904px; height: 3.05904px; top: 83.314%; left: 18.0091%;"></span><span style="width: 1.39797px; height: 1.39797px; top: 10.0895%; left: 48.7686%;"></span><span style="width: 2.84817px; height: 2.84817px; top: 34.3933%; left: 99.3602%;"></span><span style="width: 3.75171px; height: 3.75171px; top: 59.4942%; left: 52.1022%;"></span><span style="width: 0.804244px; height: 0.804244px; top: 44.5828%; left: 92.5449%;"></span><span style="width: 3.96482px; height: 3.96482px; top: 67.9703%; left: 1.80717%;"></span><span style="width: 3.01061px; height: 3.01061px; top: 15.1389%; left: 39.1783%;"></span><span style="width: 1.43886px; height: 1.43886px; top: 35.4845%; left: 22.7516%;"></span><span style="width: 1.24186px; height: 1.24186px; top: 33.6128%; left: 99.2505%;"></span><span style="width: 2.03258px; height: 2.03258px; top: 7.4989%; left: 58.0193%;"></span><span style="width: 0.466664px; height: 0.466664px; top: 90.6054%; left: 52.9068%;"></span><span style="width: 3.57072px; height: 3.57072px; top: 42.2118%; left: 82.456%;"></span><span style="width: 1.0855px; height: 1.0855px; top: 29.2153%; left: 4.94233%;"></span><span style="width: 1.91812px; height: 1.91812px; top: 50.9852%; left: 62.086%;"></span><span style="width: 2.29243px; height: 2.29243px; top: 56.6968%; left: 47.2346%;"></span><span style="width: 3.32142px; height: 3.32142px; top: 34.6344%; left: 37.7664%;"></span><span style="width: 2.27416px; height: 2.27416px; top: 56.7904%; left: 12.0399%;"></span><span style="width: 0.0908868px; height: 0.0908868px; top: 98.8894%; left: 41.7482%;"></span><span style="width: 1.39203px; height: 1.39203px; top: 67.425%; left: 16.3556%;"></span></div>

<div class="login-box">
  <div class="login-logo">
    <a style="color: white" href="__AdminLTE__/index2.html"><b >电子处方PC端</b></a>
  </div>
  <!-- /.login-logo -->
  <div class="login-box-body">
    <p class="login-box-msg">登陆进入系统</p>

    <form  id="mainForm" action="login" method="post">
      <div class="form-group has-feedback">
        <input value="{:cookie('username')}" id="username" name="username"  type="text" class="form-control" placeholder="用户名或邮箱">
        <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback">
        <input value="{:cookie('password')}" id="password"  name="password" type="password" class="form-control" placeholder="密码">
        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
      </div>
      <div class="row">
        <div class="col-xs-8">
          <div class="checkbox icheck">
            <label>
              <input id="remember"  name="remember" type="checkbox">&nbsp;记住我
            </label>
          </div>
        </div>
        <!-- /.col -->
        <div class="col-xs-4">
          <button type="submit" class="btn btn-primary btn-block btn-flat">登陆</button>
        </div>
        <!-- /.col -->
      </div>
    </form>





<!--     <div class="social-auth-links text-center">


    </div> -->
    <!-- /.social-auth-links -->
<!--     <div class="row">
       <div class="col-xs-18">
       <span><a  style="float: right;margin-right: 15px;" href="#">忘记密码</a></span>

       <span style="float: right;margin-right: 10px;"> <a href="#" class="text-center">注册账号</a></span>
     </div>
    </div>
 -->

  </div>
  <!-- /.login-box-body -->
</div>
<!-- /.login-box -->
<!-- jQuery 3 -->
<script src="__AdminLTE__/bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="__AdminLTE__/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- iCheck -->
<script src="__AdminLTE__/plugins/iCheck/icheck.min.js"></script>
<script src="__module__/layer/layer.js"></script>
<script src="__adminJs__/jquery.form.js"></script>
<script type="text/javascript" src="__adminJs__/admin.js"></script>

<!-- 背景 -->
<script src="__module__/js/app.js"></script>

{php}
    if(!empty(cookie('username'))){
  {/php}
      <script type="text/javascript">$("#remember").attr({'checked':'checked'});</script>
  {php}
}
{/php}
<script>
      $(function () {
        $('input').iCheck({
          checkboxClass: 'icheckbox_square-blue',
          radioClass: 'iradio_square-blue',
          increaseArea: '20%' /* optional */
        });
      });

      var options = {
          type:'post',           //post提交
          //url:'http://ask.tongzhuo100.com/server/****.php?='+Math.random(),   //url
          dataType:"json",        //json格式
          data:{},    //如果需要提交附加参数，视情况添加
          clearForm: false,        //成功提交后，清除所有表单元素的值
          resetForm: false,        //成功提交后，重置所有表单元素的值
          cache:false,
          async:false,          //同步返回
          success:function(data){
                console.log(data);

                if(data.code==0){
                  layer.msg(data.msg);
                }else{
                  layer.msg(data.msg,{icon:1,offset:'t'},function(){
                      jump(data.url);
                  });
                }

              //服务器端返回处理逻辑
            },
            error:function(XmlHttpRequest,textStatus,errorThrown){
              layer.msg('操作失败:服务器处理失败');
          }
        };
      // bind form using 'ajaxForm'
      $('#mainForm').ajaxForm(options).submit(function(data){
        //无逻辑
      });

</script>

</body>
</html>
